import { SimpleSp3D } from "../Tool/SimpleSp3D";



export abstract class  BaseState
{

    public m_StateId:string;

    //为防止报错 这里先用StateController 代替 将来会是具体类
    constructor(statecontroller:SimpleSp3D,id:string)
    {
        this.m_stateController=statecontroller;
        this.m_StateId=id;
    }

    protected m_stateController:SimpleSp3D=null;

    public CanTransition(transition?:string ):boolean
    {
        return true;
    }

    public abstract  OnEnter(param1?:Object);

    public abstract Act();

    public  abstract  onExit();
}